package com.ruoyi.broker.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 经纪人数据对象 t_broker
 * 
 * @author ruoyi
 * @date 2025-04-09
 */
public class Broker extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 经纪人ID */
    private Long id;

    /** 技师 */
    @Excel(name = "技师")
    private Long tid;

    /** 经纪人姓名 */
    @Excel(name = "经纪人姓名")
    private String brokerName;

    /** 经纪人手机号 */
    @Excel(name = "经纪人手机号")
    private String brokerTel;

    /** 经纪人邀请码 */
    @Excel(name = "经纪人邀请码")
    private String brokerInvitationCode;

    /** 经纪人上级 */
    @Excel(name = "经纪人上级")
    private String brokerInvitedCode;

    /** 渠道名 */
    @Excel(name = "渠道名")
    private String channelType;

    /** 常规项目分成比例（%） */
    @Excel(name = "常规项目分成比例", readConverterExp = "%=")
    private BigDecimal splitRate;

    /** 升级套餐分成比例（%） */
    @Excel(name = "升级套餐分成比例", readConverterExp = "%=")
    private BigDecimal upgradeSplitRate;

    /** 第一次加钟分成比例（%） */
    @Excel(name = "第一次加钟分成比例", readConverterExp = "%=")
    private BigDecimal bellFirstSplitRate;

    /** 第二次加钟分成比例（%） */
    @Excel(name = "第二次加钟分成比例", readConverterExp = "%=")
    private BigDecimal bellSecondSplitRate;

    /** 逻辑删除（0=未删除，1=已删除） */
    private Integer isDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTid(Long tid) 
    {
        this.tid = tid;
    }

    public Long getTid() 
    {
        return tid;
    }
    public void setBrokerName(String brokerName) 
    {
        this.brokerName = brokerName;
    }

    public String getBrokerName() 
    {
        return brokerName;
    }
    public void setBrokerTel(String brokerTel) 
    {
        this.brokerTel = brokerTel;
    }

    public String getBrokerTel() 
    {
        return brokerTel;
    }
    public void setBrokerInvitationCode(String brokerInvitationCode) 
    {
        this.brokerInvitationCode = brokerInvitationCode;
    }

    public String getBrokerInvitationCode() 
    {
        return brokerInvitationCode;
    }
    public void setBrokerInvitedCode(String brokerInvitedCode) 
    {
        this.brokerInvitedCode = brokerInvitedCode;
    }

    public String getBrokerInvitedCode() 
    {
        return brokerInvitedCode;
    }
    public void setChannelType(String channelType) 
    {
        this.channelType = channelType;
    }

    public String getChannelType() 
    {
        return channelType;
    }
    public void setSplitRate(BigDecimal splitRate) 
    {
        this.splitRate = splitRate;
    }

    public BigDecimal getSplitRate() 
    {
        return splitRate;
    }
    public void setUpgradeSplitRate(BigDecimal upgradeSplitRate) 
    {
        this.upgradeSplitRate = upgradeSplitRate;
    }

    public BigDecimal getUpgradeSplitRate() 
    {
        return upgradeSplitRate;
    }
    public void setBellFirstSplitRate(BigDecimal bellFirstSplitRate) 
    {
        this.bellFirstSplitRate = bellFirstSplitRate;
    }

    public BigDecimal getBellFirstSplitRate() 
    {
        return bellFirstSplitRate;
    }
    public void setBellSecondSplitRate(BigDecimal bellSecondSplitRate) 
    {
        this.bellSecondSplitRate = bellSecondSplitRate;
    }

    public BigDecimal getBellSecondSplitRate() 
    {
        return bellSecondSplitRate;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tid", getTid())
            .append("brokerName", getBrokerName())
            .append("brokerTel", getBrokerTel())
            .append("brokerInvitationCode", getBrokerInvitationCode())
            .append("brokerInvitedCode", getBrokerInvitedCode())
            .append("channelType", getChannelType())
            .append("splitRate", getSplitRate())
            .append("upgradeSplitRate", getUpgradeSplitRate())
            .append("bellFirstSplitRate", getBellFirstSplitRate())
            .append("bellSecondSplitRate", getBellSecondSplitRate())
            .append("isDelete", getIsDelete())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
